import React, { useRef } from 'react';
import VersionPageTable from '../ProcessVersion/VersionPageTable';

function VersionManager({ data }) {
  const tableRef = useRef(null);

  return (
    <>
      <div className="ant-detail-title">
        <span>版本管理</span>
        {/* <Space className="pull-right">
          <NewVersionButton processId={processId} onCreated={onVersionCreated} />
        </Space> */}
      </div>
      <VersionPageTable ref={tableRef} data={data} />
    </>
  );
}

export default VersionManager;
